package com.gree.elasticsearch.security.exception;

import org.springframework.security.core.AuthenticationException;

/**
 * 总有刁民想害朕，请叫我小花狗
 * create by zxw on 2020/5/30
 */
public class JwtExpiredException extends AuthenticationException {

    private String token;

    public JwtExpiredException(String msg, Throwable t) {
        super(msg, t);
    }

    public JwtExpiredException(String token, String msg, Throwable throwable) {
        super(msg, throwable);
        this.token = token;
    }

    public String getToken() {
        return token;
    }
}
